//
//  SISSNetworkingManager+Mine.h
//  SISSAPP
//
//  Created by 优房网 on 2017/5/4.
//  Copyright © 2017年 优房网. All rights reserved.
//

#import "SISSNetworkingManager.h"
#import "SISSHouseResourceModel.h"
#import "SISSPassengerResourceModel.h"
#import "SISSPersonInfoModel.h"
#import "SISSHouseProgressModel.h"
#import "SISSPassengerProgressModel.h"
#import "SISSHouseCoopProgressModel.h"
#import "SISSPassengerCoopProgressModel.h"
#import "SISSRentOutModel.h"
#import "SISSTenantModel.h"
#import "SISSRentOutProgressModel.h"
#import "SISSTenantProgressModel.h"
#import "SISSKPIListModel.h"
#import "SISSWalletInfoModel.h"
#import "SISSBasePagingModel.h"

@interface SISSNetworkingManager (Mine)


/**
 6.2.1 删除线下房源

 @param houseId 房源id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)deleteHouseResourceWithHouseId:(NSString *)houseId successBlock:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.2.2 删除已登记客源信息
 
 @param passengerId 客源id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)deletePassengerResourceWithPassengerId:(NSString *)passengerId successBlock:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.3.1 获取我登记的线下房源  GET请求

 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestOfflineHouseWithsuccess:(void(^)(NSArray<SISSHouseResourceModel *> * houseResources))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.3.2 获取我登记的线下客源  GET请求
 
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestOfflinePassengerWithsuccess:(void(^)(NSArray<SISSPassengerResourceModel *> * passengerResources))successBlock failed:(void(^)(NSError *error))failedBlock;


/**
 6.4.1 获取房源详情  GET请求
 
 @param houseId 房源id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestHouseResourceDetailWithHouseId:(NSString *)houseId successBlock:(void(^)(SISSHouseResourceModel *houseModel))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.4.2 获取客源详情  GET请求
 
 @param passengerId 客源id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestPassengerResourceDetailWithPassengerId:(NSString *)passengerId successBlock:(void(^)(SISSPassengerResourceModel *passengerModel))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
  6.5.1 获取我的推荐-房源 GET请求
 
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestMyRecommendHouseWithsuccess:(void(^)(NSArray<SISSHouseResourceModel *> * houseResources))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.5.2 获取我的推荐-客源 GET请求
 
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestMyRecommendPassengerWithsuccess:(void(^)(NSArray<SISSPassengerResourceModel *> *passengerResources))successBlock failed:(void(^)(NSError *error))failedBlock;


/**
 6.14.1  获取经纪人信息 GET请求
 
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestPersonInfoWithSpId:(NSString *)spId success:(void(^)(SISSPersonInfoModel *personInfo))successBlock failed:(void(^)(NSError *error))failedBlock;


/**
 6.15.1  获取房源进度历史业务 GET请求
 
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestHouseProgressHistoryWithsuccess:(void(^)(NSArray<SISSHouseProgressModel *> * houseProgressArr))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.15.2  获取客源进度历史业务 GET请求
 
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestPassengerProgressHistoryWithsuccess:(void(^)(NSArray<SISSPassengerProgressModel *> * passengerProgressArr))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.15.3  获取房源合作历史业务 GET请求
 
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestHouseCooperationHistoryWithsuccess:(void(^)(NSArray<SISSHouseCoopProgressModel *> * houseCoopArr))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.15.4  获取客源合作历史业务 GET请求
 
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestPassengerCooperationHistoryWithsuccess:(void(^)(NSArray<SISSPassengerCoopProgressModel *> * passengerCoopArr))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.16 获取经纪人收到的合作请求数 GET请求
 
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestCooperationRequestCountyWithsuccess:(void(^)(NSInteger count))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.17 根据身份证号获取黑名单信息

 @param idNo 身份证号
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestBackListWithIdNO:(NSString *)idNo success:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

#pragma mark - 2.0

/**
 6.2.3 删除线下登记的出租
 
 @param leaseId 出租id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)deleteLeaseOfflineWithLeaseId:(NSString *)leaseId successBlock:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.2.4 删除线下登记的租客
 
 @param tenantId 租客id
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)deleteTenantOfflineWithTenantId:(NSString *)tenantId successBlock:(void(^)(id responseObject))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.3.3 获取登记的线下出租  GET请求
 
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestOfflineRentOutWithsuccess:(void(^)(NSArray<SISSRentOutModel *> * rentOutResources))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.3.4 获取登记的线下租客 GET请求
 
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestOfflineTenantWithsuccess:(void(^)(NSArray<SISSTenantModel *> * tenantResources))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.5.3 获取我的推荐-出租 获取经纪人推荐的目标出租 GET请求
 
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestMyRecommendRentOutWithsuccess:(void(^)(NSArray<SISSRentOutModel *> * rentOutResources))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
6.5.4 获取我的推荐-租客 获取经纪人推荐的目标租客 GET请求
 
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestMyRecommendTenantWithsuccess:(void(^)(NSArray<SISSTenantModel *> *tenantResources))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.15.5  获取出租进度历史业务 GET请求
 
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestRentOutProgressHistoryWithsuccess:(void(^)(NSArray<SISSRentOutProgressModel *> * rentOutProgressArr))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.15.6  获取求租进度历史业务 GET请求
 
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestTenantProgressHistoryWithsuccess:(void(^)(NSArray<SISSTenantProgressModel *> * tenantProgressArr))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.18.1 获取业绩指标 GET请求

 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestAchievementListWithSuccessBlock:(void(^)(NSArray<SISSKPIListModel *> *KPIListArr))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
6.1.15  获取钱包信息 GET请求

 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestPersonCenterWalletInfoWithSuccessBlock:(void(^)(SISSWalletInfoModel *walletInfoModel))successBlock failed:(void(^)(NSError *error))failedBlock;

/**
 6.1.16  经纪人获取收支明细 GET请求
 
 @param pageNo 分页书
 @param successBlock 成功的回调
 @param failedBlock 失败的回调
 */
- (void)requestPersonCenterWalletIncomeDetailInfoWithPageNo:(NSInteger)pageNo successBlock:(void(^)(SISSBasePagingModel *baseModel))successBlock failed:(void(^)(NSError *error))failedBlock;
                                                                                                                                  
@end
